package com.zbkj.service.dividend.model;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 用户分红记录表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_dividend_record")
@ApiModel(value = "UserDividendRecord对象", description = "用户分红记录表")
public class DividendPoolRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id")
    private String id;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "订单号")
    private String orderNo;

    @ApiModelProperty(value = "分红比例")
    private BigDecimal profitRatio;

    @ApiModelProperty(value = "分红金额")
    private BigDecimal dividendAmount;

    @ApiModelProperty(value = "订单总金额")
    private BigDecimal orderAmount;

    @ApiModelProperty(value = "分红池总金额")
    private BigDecimal poolTotalAmount;

    @ApiModelProperty(value = "分红池用户数量")
    private Integer poolUserCount;

    @ApiModelProperty(value = "分红日期")
    private LocalDateTime dividendDate;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}